package com.ruoyi.project.im.code.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.project.im.users.domain.Users;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 卡密对象 kami
 *
 * @author ruoyi
 * @date 2023-02-24
 */
public class Code extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /**  */
    @Excel(name = "")
    private String kamicode;

    /** uselogin：登录卡密 usexufei：续费卡密 useceshi:测试卡密 */
    @Excel(name = "uselogin：登录卡密 usexufei：续费卡密 useceshi:测试卡密")
    private String kamitype;

    /** nouse 未使用 inuse 已使用 */
    @Excel(name = "nouse 未使用 inuse 已使用")
    private String kamistatus;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "使用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usetime;

    /** 天数 */
    @Excel(name = "天数")
    private Long days;

    /** sold :已售 notsold: 未售 */
    @Excel(name = "sold :已售 notsold: 未售")
    private String issold;

    /**  */
    @Excel(name = "")
    private String beizhu;

    /** 绑定的使用人 */
    @Excel(name = "绑定的使用人")
    private String userId;


    private Users users;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setKamicode(String kamicode)
    {
        this.kamicode = kamicode;
    }

    public String getKamicode()
    {
        return kamicode;
    }
    public void setKamitype(String kamitype)
    {
        this.kamitype = kamitype;
    }

    public String getKamitype()
    {
        return kamitype;
    }
    public void setKamistatus(String kamistatus)
    {
        this.kamistatus = kamistatus;
    }

    public String getKamistatus()
    {
        return kamistatus;
    }
    public void setAddtime(Date addtime)
    {
        this.addtime = addtime;
    }

    public Date getAddtime()
    {
        return addtime;
    }
    public void setUsetime(Date usetime)
    {
        this.usetime = usetime;
    }

    public Date getUsetime()
    {
        return usetime;
    }
    public void setDays(Long days)
    {
        this.days = days;
    }

    public Long getDays()
    {
        return days;
    }
    public void setIssold(String issold)
    {
        this.issold = issold;
    }

    public String getIssold()
    {
        return issold;
    }
    public void setBeizhu(String beizhu)
    {
        this.beizhu = beizhu;
    }

    public String getBeizhu()
    {
        return beizhu;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("kamicode", getKamicode())
            .append("kamitype", getKamitype())
            .append("kamistatus", getKamistatus())
            .append("addtime", getAddtime())
            .append("usetime", getUsetime())
            .append("days", getDays())
            .append("issold", getIssold())
            .append("beizhu", getBeizhu())
            .append("userId", getUserId())
            .append("users", getUsers())
            .toString();
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }
}
